package com.java2_7;

public class classMember {

    private String name;
    private int age;
    private int index;

    public static String member;

    public static int add(int x, int y) {
        return x + y;
    }

    public static String text(){
        return member;
        //return name;
    }

    public String text1(){
        //return name;
        return member;
    }

    public static String text2(String member){
        return member;
        //this.member = member;//静态方法变量不能使用this.

    }

    public static void main(String[] args) {


    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
